home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Macromedia Multimedia Showcase 5.1
/
Macromedia - Multimedia Showcase 5.1 (Macromedia) (1996).ISO
/
pc
/
media
/
shared.dir
/
02021_Script_Panning Skyline Script
< prev
next >
Wrap
Text File
|
1996-03-28
|
976b
|
47 lines
-- Uses pictures numbered 0 through 8 to Pan Left/Right accross SF skyline
-- Skyline 0 is the default picture, located in the Pan 0 frame
on InitializePan
-- put #InitializePan
global gPanIndex
set gPanIndex = 0
go frame string("Pan" && gPanIndex)
end InitializePan
--
on PanLeft
global gPanIndex
if gPanIndex < 8 then
set gPanIndex = gPanIndex+1
else
set gPanIndex = 0
end if
set myLabel = string("Pan" && gPanIndex)
puppetTransition 12, 0, 64, TRUE
go frame myLabel
ResetNavTimeout()
end PanLeft
--
on PanRight
global gPanIndex
if gPanIndex > 0 then
set gPanIndex = gPanIndex-1
else
set gPanIndex = 8
end if
set myLabel = string("Pan" && gPanIndex)
puppetTransition 11, 0, 64, TRUE
go frame myLabel
ResetNavTimeout()
end PanRight
--
on ResetNavTimeout
global gNavObj
StartTimeOut(gNavObj)
set the timingOut of gNavObj = true
end ResetNavTimeout